package CreationalPatterns.FactoryMethod.v1;


import CreationalPatterns.FactoryMethod.v1.factory.AbstractTransportFactory;
import CreationalPatterns.FactoryMethod.v1.product.AbstractTransport;
import utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
        AbstractTransportFactory factory = (AbstractTransportFactory) XMLUtil.getBean("FactoryMethod");
        AbstractTransport transport = factory.createTransport();
        transport.driver();
    }
}
